package com.gjintel.framework.dataset.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gjintel.framework.dataset.dao.IDataSetDao;
import com.gjintel.framework.dataset.model.DataSet;
import com.gjintel.sdk.base.dao.HibernateGenericDAO;

@Repository("dataSetDao")
public class DataSetDaoImpl extends HibernateGenericDAO implements IDataSetDao {
    
	@SuppressWarnings("unchecked")
	@Override
	public DataSet getDataSet() {
		List list = this.find("from DataSet d ");
		return list.isEmpty()?null:(DataSet)list.get(0);
	}

}
